package com.indeep.user.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class CheckCodeVO {
    // 用户id
    Long id;
    String openid;
    // 是否注册过
    String isRegister;
    String accessToken;
    String refreshToken;
    
    public CheckCodeVO(Long id, boolean isRegister, String accessToken, String refreshToken) {
        this.id = id;
        this.isRegister = isRegister + "";// 变成字符串类型
        this.accessToken = accessToken;
        this.refreshToken = refreshToken;
    }
    
    public CheckCodeVO(Long l) {
        this.id = l;
    }
}
